package com.example.chapter12.design.factory.demo3;

import com.example.chapter12.design.factory.demo1.Fruit;
import com.example.chapter12.design.factory.demo1.Pear;

public class PearFactory implements IFactory {
    @Override
    public Fruit create(){
        return new Pear();
    }
}
